projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
997ec95
)
(main): Use stdout rather than stdin to obtain the terminal (bug#427).
author
Chong Yidong
<cyd@stupidchicken.com>
Fri, 19 Sep 2008 15:50:24 +0000
(15:50 +0000)
committer
Chong Yidong
<cyd@stupidchicken.com>
Fri, 19 Sep 2008 15:50:24 +0000
(15:50 +0000)
lib-src/emacsclient.c
patch
|
blob
|
history
diff --git
a/lib-src/emacsclient.c
b/lib-src/emacsclient.c
index 8f0231db540f586b3d0c590de4124d15f96e8b0a..87cc9de6f516a6ac04b6824fde5cb6766c0dafe8 100644
(file)
--- a/
lib-src/emacsclient.c
+++ b/
lib-src/emacsclient.c
@@
-1429,7
+1429,7
@@
main (argc, argv)
char *type = egetenv ("TERM");
char *tty_name = NULL;
#ifndef WINDOWSNT
- tty_name = ttyname (fileno (std
in
));
+ tty_name = ttyname (fileno (std
out
));
#endif
if (! tty_name)